package com.gcu.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gcu.pojo.loginInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface loginMapper extends BaseMapper<loginInfo> {
    @Select("select * from userlogin")
    List<loginInfo> selectLoginInfo();

    @Select("select * from userlogin where userid = #{id}")
    loginInfo selectAllByUserid(String id);
}
